using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Zoo.View;

/// <summary>
/// Summary description for PageBase
/// </summary>
public class PageBase : System.Web.UI.Page,IPageBase
{
    protected Zoo.Dictionary Dico;
    protected Zoo.IZooModel model;
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        model = new Zoo.ZooModel();
        Dico = Zoo.Dictionary.CreateFromCache(UserContext.Language,model);
    }

    public string Language
    {
        get
        {
            return UserContext.Language;
        }
        
    }

    public void GoTo(string url)
    {
        Response.Redirect(url);
    }




   
}
